package com.weaponlin.guava.optional;

import com.google.common.base.Optional;
import com.google.common.collect.Lists;
import com.google.common.collect.Ordering;

import java.util.List;

public class OptionalTest {
    public static void main(String[] args) {
        //        System.out.println(Optional.fromNullable(null).get());
        System.out.println(Optional.fromNullable("I am not null").or(""));
//        System.out.println(Optional.of(null).get());
        System.out.println(Optional.of("I am not null").get());
//        System.out.println(Optional.absent().get());
        System.currentTimeMillis();

    }
}
